import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui"; //引入element组件库
import "element-ui/lib/theme-chalk/index.css"; //引入element样式文件
import fHeader from "./components/f-header";
import fFooter from "./components/f-footer";
import fCarousel from "./components/carousel";
import fType from "./components/f-type";
import list from "./components/list";
import recommend from "./components/recommend";
import tabs from "./components/tabs";
import friendLink from "./components/friend-link";
import member from "./components/member";
import MypostList from "./components/MypostList";
import "./assets/css/global.css";

import axios from "axios";
import "./axios";

import mavonEditor from "mavon-editor";
import "mavon-editor/dist/css/index.css";

Vue.prototype.$axios = axios; //
Vue.use(ElementUI); //使用element
Vue.use(mavonEditor);
Vue.config.productionTip = false;
Vue.component("f-header", fHeader);
Vue.component("f-footer", fFooter);
Vue.component("carousel", fCarousel);
Vue.component("f-type", fType);

Vue.component("list", list);
Vue.component("recommend", recommend);
Vue.component("tabs", tabs);
Vue.component("friend-link", friendLink);
Vue.component("member", member);
Vue.component("MypostList", MypostList);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
